#!/usr/bin/env python
from matplotlib.pyplot import *

#fin=open('instance80_24/data.dat')
fin=open('p_iter1.dat')
todo=fin.read().strip().split('\n')
xs=[int(x.split()[0]) for x in todo if x]
ys=[int(x.split()[1]) for x in todo if x]
#title("Cantidad de operaciones de $matching$")
xlabel("MAX_ITER")
ylabel("clausulas satisfechas")
#plot(xs,exacto,'k.',label="exacto")
plot(xs,ys,'ro',label="tabu")
#plot(xs,[x*5.5+60 for x in xs],label=r"$c \times x$")
legend(loc=0)
#ylim(ymax=89,ymin=83)
savefig('MAX_ITER.png',dpi=640./8)
show()
